package andrei.mower2.business;

public final class LawnDrivingHelper {
	
	private static final LawnDrivingHelper INSTANCE = new LawnDrivingHelper();
	
	LawnDrivingHelper() {}
	
	public static LawnDrivingHelper getInstance() {
		return INSTANCE;
	}

	public boolean isOutsideLawn(Position position, MowersDrivingContext drivingContext) {
		return position.x < 0 || position.x >= drivingContext.lawnWidth ||
				position.y < 0 || position.y >= drivingContext.lawnHeight;				
	}
}
